<template>
  <div class="group-list">
    <div v-for="stu in group" :key="stu.id" class="group-item">
      <img :src="stu.students.avatar" alt="" class="group-avatar" style="margin-right: 24px">
      <span class="group-name">{{ stu.students.studentName }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'GroupList',
  props: {
    group: {
      type: Array,
      students: {}
    }
  }
};
</script>

<style scoped>
.group-list {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
}

.group-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.group-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.group-name {
  font-size: 16px;
}
</style>
